package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.service.TestLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @create 2020-05-17 11:57
 */

@RestController
@RequestMapping("admin/product/test")
public class TestLockController {

    @Autowired
    private TestLockService testLockService;

    //测试
    @GetMapping("/testLock")
    public Result testLock(){
        testLockService.testLock();
        return Result.ok();
    }
}
